package dmp.every;

import java.io.IOException;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

public class GetEveryReduce extends Reducer<Text, Text, Text,NullWritable > {
	private Text resultKey=new Text();
	@Override
	protected void reduce(Text key, Iterable<Text> values, Context context) throws IOException, InterruptedException {
		for (Text value : values) {
			resultKey.set(key.toString()+"|"+value.toString());
			context.write(resultKey,NullWritable.get() );
		}
	}
}
